package com.endurance.service;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class LifeCycleService2 {

     public void destroy() throws Exception {
        System.out.println("调用Bean的销毁回调2...");
        // do something...

    }

     public void init() throws Exception {
        System.out.println("调用Bean的初始化回调2...");
        // do something...
    }

    @Override
    public String toString() {
        return "LifeCycleService2{}";
    }
}
